
package com.be.beadmin.service.repository;

import com.be.beadmin.service.entity.SerialNumber;
import com.be.beadmin.service.entity.SerialNumberItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author chenwei
* @date 2023-01-16
**/
public interface SerialNumberItemRepository extends JpaRepository<SerialNumberItem, String>, JpaSpecificationExecutor<SerialNumberItem> {

    SerialNumberItem findSerialNumberItemByIdAndDelete(String id, Integer delete);

    SerialNumberItem findSerialNumberItemById(String id);

    List<SerialNumberItem> findSerialNumberItemsByDeleteAndSerialNumberOrderBySort(Integer isDelete, SerialNumber serialNumber);

}